<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>神话学院管理系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #1890ff;
            --primary-hover: #40a9ff;
            --success-color: #52c41a;
            --warning-color: #faad14;
            --error-color: #f5222d;
            --text-color: #333;
            --text-light: #666;
            --border-color: #d9d9d9;
            --bg-color: #f5f5f5;
            --white: #fff;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        /* 头部导航 */
        .header {
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .nav-container {
            display: flex;
            align-items: center;
            padding: 0 24px;
            height: 64px;
        }

        .logo {
            font-size: 20px;
            font-weight: bold;
            color: var(--primary-color);
            margin-right: 40px;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-item {
            margin: 0 16px;
            position: relative;
        }

        .nav-link {
            padding: 20px 0;
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-link:hover, .nav-link.active {
            color: var(--primary-color);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
        }

        .user-info {
            margin-left: auto;
            display: flex;
            align-items: center;
        }

        /* 主内容区 */
        .main-content {
            margin-top: 80px;
            padding: 24px;
            min-height: calc(100vh - 80px);
        }

        .page-header {
            margin-bottom: 24px;
        }

        .page-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .page-description {
            color: var(--text-light);
        }

        /* 卡片布局 */
        .card {
            background: var(--white);
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 24px;
            overflow: hidden;
        }

        .card-header {
            padding: 16px 24px;
            border-bottom: 1px solid var(--border-color);
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-body {
            padding: 24px;
        }

        /* 表格样式 */
        .table-container {
            overflow-x: auto;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th,
        .data-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .data-table th {
            background: #fafafa;
            font-weight: 600;
        }

        .data-table tr:hover {
            background: #f5f5f5;
        }

        /* 表单样式 */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        /* 按钮样式 */
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }

        .btn-primary {
            background: var(--primary-color);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--primary-hover);
        }

        .btn-success {
            background: var(--success-color);
            color: var(--white);
        }

        .btn-danger {
            background: var(--error-color);
            color: var(--white);
        }

        .btn-sm {
            padding: 4px 8px;
            font-size: 12px;
        }

        .btn-group {
            display: flex;
            gap: 8px;
        }

        /* 分页 */
        .pagination {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-top: 16px;
            gap: 8px;
        }

        /* 搜索和筛选 */
        .search-bar {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }

        .search-input {
            flex: 1;
        }

        /* 状态标签 */
        .status-tag {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-enabled {
            background: #f6ffed;
            color: var(--success-color);
            border: 1px solid #b7eb8f;
        }

        .status-disabled {
            background: #fff2f0;
            color: var(--error-color);
            border: 1px solid #ffccc7;
        }

        /* 数据概览 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: var(--white);
            border-radius: 6px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .stat-value {
            font-size: 32px;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .stat-label {
            color: var(--text-light);
            font-size: 14px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-container {
                padding: 0 16px;
            }

            .nav-menu {
                display: none;
            }

            .main-content {
                padding: 16px;
                margin-top: 64px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .search-bar {
                flex-direction: column;
            }
        }

        /* 页面切换动画 */
        .page {
            display: none;
            animation: fadeIn 0.3s ease-in;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body>
    <!-- 头部导航 -->
    <header class="header">
        <nav class="nav-container">
            <div class="logo">神话学院管理系统</div>
            <ul class="nav-menu">
                <li class="nav-item"><a href="#dashboard" class="nav-link active">首页</a></li>
                <li class="nav-item"><a href="#system" class="nav-link">系统管理</a></li>
                <li class="nav-item"><a href="#user" class="nav-link">用户管理</a></li>
                <li class="nav-item"><a href="#academic" class="nav-link">教务管理</a></li>
            </ul>
            <div class="user-info">
                <span>系统管理员</span>
                <span style="margin: 0 16px;">|</span>
                <a href="#" class="btn btn-sm btn-primary">退出登录</a>
            </div>
        </nav>
    </header>

    <!-- 主内容区 -->
    <main class="main-content">
        <!-- 首页 -->
        <div id="dashboard" class="page active">
            <div class="page-header">
                <h1 class="page-title">系统概览</h1>
                <p class="page-description">神话学院管理系统 - 数据统计与快捷操作</p>
            </div>

            <!-- 数据概览 -->
            <div class="stats-grid">
                <div class="stat-card">
                    <div class="stat-value">5,420</div>
                    <div class="stat-label">在校学生</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">468</div>
                    <div class="stat-label">在职教师</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">50</div>
                    <div class="stat-label">班级数量</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">80</div>
                    <div class="stat-label">教室数量</div>
                </div>
            </div>

            <!-- 快捷操作 -->
            <div class="card">
                <div class="card-header">
                    <span>快捷操作</span>
                </div>
                <div class="card-body">
                    <div class="btn-group">
                        <a href="#system" class="btn btn-primary">开通账户</a>
                        <a href="#user" class="btn btn-primary">学生管理</a>
                        <a href="#academic" class="btn btn-primary">班级管理</a>
                        <a href="#academic" class="btn btn-primary">课程管理</a>
                    </div>
                </div>
            </div>

            <!-- 最近操作 -->
            <div class="card">
                <div class="card-header">
                    <span>最近操作记录</span>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>时间</th>
                                    <th>操作类型</th>
                                    <th>操作内容</th>
                                    <th>操作人</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>2025-01-15 10:30</td>
                                    <td>新增学生</td>
                                    <td>张三 (2025010101)</td>
                                    <td>教务管理员</td>
                                </tr>
                                <tr>
                                    <td>2025-01-15 09:15</td>
                                    <td>班级分配</td>
                                    <td>一年级一班分配学生</td>
                                    <td>教务管理员</td>
                                </tr>
                                <tr>
                                    <td>2025-01-14 16:45</td>
                                    <td>账户开通</td>
                                    <td>教师李四账户开通</td>
                                    <td>系统管理员</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        <!-- 系统管理页面 -->
        <div id="system" class="page">
            <div class="page-header">
                <h1 class="page-title">系统管理</h1>
                <p class="page-description">账户开通、角色管理、权限分配</p>
            </div>

            <!-- 用户账户管理 -->
            <div class="card">
                <div class="card-header">
                    <span>用户账户管理</span>
                    <button class="btn btn-primary" onclick="openUserModal()">开通账户</button>
                </div>
                <div class="card-body">
                    <div class="search-bar">
                        <div class="search-input">
                            <input type="text" class="form-control" placeholder="搜索用户名或姓名...">
                        </div>
                        <button class="btn btn-primary">搜索</button>
                    </div>
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>用户名</th>
                                    <th>真实姓名</th>
                                    <th>角色</th>
                                    <th>状态</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>admin</td>
                                    <td>系统管理员</td>
                                    <td>系统管理员</td>
                                    <td><span class="status-tag status-enabled">启用</span></td>
                                    <td>2025-01-01</td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                            <button class="btn btn-sm btn-danger">禁用</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="pagination">
                        <span>共 1 条记录</span>
                    </div>
                </div>
            </div>

            <!-- 角色管理 -->
            <div class="card">
                <div class="card-header">
                    <span>角色管理</span>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>角色编码</th>
                                    <th>角色名称</th>
                                    <th>描述</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>ADMIN</td>
                                    <td>系统管理员</td>
                                    <td>系统最高权限管理员</td>
                                    <td><span class="status-tag status-enabled">启用</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">权限</button>
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        <!-- 用户管理页面 -->
        <div id="user" class="page">
            <div class="page-header">
                <h1 class="page-title">用户管理</h1>
                <p class="page-description">学生信息、教师信息管理</p>
            </div>

            <!-- 学生管理 -->
            <div class="card">
                <div class="card-header">
                    <span>学生信息管理</span>
                    <button class="btn btn-primary" onclick="openStudentModal()">新增学生</button>
                </div>
                <div class="card-body">
                    <div class="search-bar">
                        <div class="search-input">
                            <input type="text" class="form-control" placeholder="搜索学号或姓名...">
                        </div>
                        <select class="form-control" style="width: 200px;">
                            <option>全部年级</option>
                            <option>一年级</option>
                            <option>二年级</option>
                        </select>
                        <button class="btn btn-primary">搜索</button>
                    </div>
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>学号</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>年级</th>
                                    <th>班级</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>2025010101</td>
                                    <td>张三</td>
                                    <td>男</td>
                                    <td>一年级</td>
                                    <td>一年级一班</td>
                                    <td><span class="status-tag status-enabled">在校</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                            <button class="btn btn-sm btn-danger">离校</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="pagination">
                        <span>共 1 条记录</span>
                    </div>
                </div>
            </div>

            <!-- 教师管理 -->
            <div class="card">
                <div class="card-header">
                    <span>教师信息管理</span>
                    <button class="btn btn-primary" onclick="openTeacherModal()">新增教师</button>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>工号</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>任教科目</th>
                                    <th>职称</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>T2024001</td>
                                    <td>李老师</td>
                                    <td>女</td>
                                    <td>语文</td>
                                    <td>高级教师</td>
                                    <td><span class="status-tag status-enabled">在职</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                            <button class="btn btn-sm btn-danger">离职</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        <!-- 教务管理页面 -->
        <div id="academic" class="page">
            <div class="page-header">
                <h1 class="page-title">教务管理</h1>
                <p class="page-description">教室、课程、学年、班级管理</p>
            </div>

            <!-- 教室管理 -->
            <div class="card">
                <div class="card-header">
                    <span>教室管理</span>
                    <button class="btn btn-primary" onclick="openClassroomModal()">新增教室</button>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>教室编码</th>
                                    <th>教室名称</th>
                                    <th>教学楼</th>
                                    <th>楼层</th>
                                    <th>容纳人数</th>
                                    <th>类型</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>10101</td>
                                    <td>101教室</td>
                                    <td>主教学楼</td>
                                    <td>1楼</td>
                                    <td>60</td>
                                    <td>普通教室</td>
                                    <td><span class="status-tag status-enabled">启用</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                            <button class="btn btn-sm btn-danger">停用</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <!-- 课程管理 -->
            <div class="card">
                <div class="card-header">
                    <span>课程管理</span>
                    <button class="btn btn-primary" onclick="openCourseModal()">新增课程</button>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>课程编码</th>
                                    <th>课程名称</th>
                                    <th>课程类型</th>
                                    <th>适用年级</th>
                                    <th>课时数</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>CHINESE</td>
                                    <td>语文</td>
                                    <td>主科</td>
                                    <td>1-5年级</td>
                                    <td>160</td>
                                    <td><span class="status-tag status-enabled">启用</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                            <button class="btn btn-sm btn-danger">停用</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <!-- 学年管理 -->
            <div class="card">
                <div class="card-header">
                    <span>学年管理</span>
                    <button class="btn btn-primary" onclick="openAcademicYearModal()">新增学年</button>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>学年编码</th>
                                    <th>学年名称</th>
                                    <th>学期</th>
                                    <th>开始日期</th>
                                    <th>结束日期</th>
                                    <th>当前学年</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>2025-2026</td>
                                    <td>2025-2026学年</td>
                                    <td>秋季学期</td>
                                    <td>2025-09-01</td>
                                    <td>2026-07-15</td>
                                    <td>是</td>
                                    <td><span class="status-tag status-enabled">启用</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                            <button class="btn btn-sm btn-primary">班级</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <!-- 班级管理 -->
            <div class="card">
                <div class="card-header">
                    <span>班级管理</span>
                    <button class="btn btn-primary" onclick="openClassModal()">新建班级</button>
                </div>
                <div class="card-body">
                    <div class="table-container">
                        <table class="data-table">
                            <thead>
                                <tr>
                                    <th>班级编码</th>
                                    <th>班级名称</th>
                                    <th>学年</th>
                                    <th>年级</th>
                                    <th>班主任</th>
                                    <th>学生人数</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>20250101</td>
                                    <td>一年级一班</td>
                                    <td>2025-2026学年</td>
                                    <td>一年级</td>
                                    <td>李老师</td>
                                    <td>54</td>
                                    <td><span class="status-tag status-enabled">正常</span></td>
                                    <td>
                                        <div class="btn-group">
                                            <button class="btn btn-sm btn-primary">学生</button>
                                            <button class="btn btn-sm btn-primary">编辑</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <script>
        // 页面切换功能
        function showPage(pageId) {
            // 隐藏所有页面
            document.querySelectorAll('.page').forEach(page => {
                page.classList.remove('active');
            });
            
            // 移除所有导航链接的active类
            document.querySelectorAll('.nav-link').forEach(link => {
                link.classList.remove('active');
            });
            
            // 显示目标页面
            document.getElementById(pageId).classList.add('active');
            
            // 设置对应导航链接为active
            document.querySelector(`[href="#${pageId}"]`).classList.add('active');
        }

        // 导航点击事件
        document.querySelectorAll('.nav-link').forEach(link => {
            link.addEventListener('click', function(e) {
                e.preventDefault();
                const pageId = this.getAttribute('href').substring(1);
                showPage(pageId);
            });
        });

        // 表单操作函数（示例）
        function openUserModal() {
            alert('开通账户功能 - 待实现');
        }

        function openStudentModal() {
            alert('新增学生功能 - 待实现');
        }

        function openTeacherModal() {
            alert('新增教师功能 - 待实现');
        }

        function openClassroomModal() {
            alert('新增教室功能 - 待实现');
        }

        function openCourseModal() {
            alert('新增课程功能 - 待实现');
        }

        function openAcademicYearModal() {
            alert('新增学年功能 - 待实现');
        }

        function openClassModal() {
            alert('新建班级功能 - 待实现');
        }

        // 页面加载时显示首页
        document.addEventListener('DOMContentLoaded', function() {
            showPage('dashboard');
        });
    </script>
</body>
</html>